import os
import yaml

"""
获取config.yml文件内容
"""


def getYamlFile():
    PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
    CONFIG_PATH = os.path.join(PROJECT_ROOT, 'Config.yml')
    ConfigData = open(CONFIG_PATH)
    YmlList = yaml.load(ConfigData, Loader=yaml.FullLoader)
    return YmlList

def getYamlPath(path):
    return getYamlFile()[path]
def test(*args,**kwargs):
    args



if __name__ == '__main__':
    # getYamlFile()
    # print(getYamlFile())
    PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))
    for root, dirs, files in os.walk(PROJECT_ROOT+"/TestCase"):
        # print(root)
        # print(dirs)
        for file in files:
            if os.path.splitext(file)[1]=='.xlsx':
                print(file)